A collection of information about Data Augmentation libraries for Image Processing.

imgaug

last updated on 10/10/2023

Supported languages:
  • Python (2.7, 3.4, 3.5, 3.6, 3.7, 3.8)
imgaug.augmenters
imgaug.augmenters
meta
meta
arithmetic
arithmetic
artistic
artistic
blend
blend
blur
blur
collections
collections
color
color
contrast
contrast
convolutional
convolutional
debug
debug
edges
edges
flip
flip
geometric
geometric
imgcorruptlike
imgcorruptlike
pillike
pillike
pooling
pooling
segmentation
segmentation
size
size
weather
weather
Text is not SVG - cannot display
Transformations Description Tags
1.

from imgaug.augmenters.arithmetic

Adds a value to all pixels in an image.

Original Augmented
aug = iaa.Add(value=(-50, 0), per_channel=True)
Original Augmented
aug = iaa.Add(value=(0, 60), per_channel=True)
2.

from imgaug.augmenters.arithmetic

Adds values to the pixels of images with possibly different values for neighbouring pixels.

3.

from imgaug.augmenters.color

Adds to the brightness channels of input images. This is a wrapper around WithBrightnessChannels and hence performs internally the same projection to random colorspaces.

4.

from imgaug.augmenters.color

Add random values to the hue of images. The augmenter first transforms images to HSV colorspace, then adds random values to the H channel and afterwards converts back to RGB. If you want to change both the hue and the saturation, it is recommended to use AddToHueAndSaturation as otherwise the image will be converted twice to HSV and back to RGB. This augmenter is a shortcut for AddToHueAndSaturation(value_hue=...).

5.

from imgaug.augmenters.color

Increases or decreases hue and saturation by random values. The augmenter first transforms images to HSV colorspace, then adds random values to the H and S channels and afterwards converts back to RGB.

6.

from imgaug.augmenters.color

Add random values to the saturation of images. The augmenter first transforms images to HSV colorspace, then adds random values to the S channel and afterwards converts back to RGB. If you want to change both the hue and the saturation, it is recommended to use AddToHueAndSaturation as otherwise the image will be converted twice to HSV and back to RGB. This augmenter is a shortcut for AddToHueAndSaturation(value_saturation=...).

7.

from imgaug.augmenters.arithmetic

Adds noise sampled from gaussian distributions elementwise to images.

8.

from imgaug.augmenters.arithmetic

Adds noise sampled from laplace distributions elementwise to images.

9.

from imgaug.augmenters.arithmetic

Adds noise sampled from poisson distributions elementwise to images.

10.

from imgaug.augmenters.geometric

Applies affine transformations to images.

11.

from imgaug.augmenters.pillike

Applies PIL-like affine transformations to images.

12.

from imgaug.augmenters.contrast

Applies CLAHE to all channels of images in their original colorspaces. CLAHE (Contrast Limited Adaptive Histogram Equalization) performs histogram equilization within image patches, i.e. over local neighbourhoods.

PHOTOMETRY
Original Augmented
aug = iaa.AllChannelsCLAHE(clip_limit=(0.1, 8), tile_grid_size_px=(3, 12),
                           tile_grid_size_px_min=3, per_channel=False)
13.

from imgaug.augmenters.contrast

Applies histogram equalization to all channels of images in their original colorspaces.

Original Augmented
aug = iaa.AllChannelsHistogramEqualization()
14.

from imgaug.augmenters.pillike

Adjusts contrast by cutting off p% of lowest/highest histogram values.

PHOTOMETRY
Original Augmented
aug = iaa.pillike.Autocontrast(cutoff=(0, 20), per_channel=False)
Original Augmented
aug = iaa.pillike.Autocontrast(cutoff=(0, 20), per_channel=True)
15.

from imgaug.augmenters.blur

Blurs an image by computing simple means over neighbourhoods.

Original Augmented
aug = iaa.AverageBlur(k=(15, 17), seed=None)
16.

from imgaug.augmenters.pooling

17.

from imgaug.augmenters.blur

Blurs/Denoises an image using a bilateral filter.

Original Augmented
aug = iaa.BilateralBlur(d=(15, 15), sigma_color=(150, 250), sigma_space=(10, 250), seed=None)
Original Augmented
aug = iaa.BilateralBlur(d=(15, 15), sigma_color=(10, 250), sigma_space=(150, 250), seed=None)
18.

from imgaug.augmenters.blend

Alpha-blends two image sources using an alpha/opacity value.

19.

from imgaug.augmenters.blend

Blends images from two branches based on areas enclosed in bounding boxes.

20.

from imgaug.augmenters.blend

Blends images from two branches according to a checkerboard pattern.

21.

from imgaug.augmenters.blend

Alpha-blends two image sources using alpha/opacity values sampled per pixel.

22.

from imgaug.augmenters.blend

Alpha-blends two image sources using frequency noise masks.

23.

from imgaug.augmenters.blend

Blends images from two branches along a horizontal linear gradient.

24.

from imgaug.augmenters.blend

Alpha-blends two image sources using non-binary masks generated per image.

25.

from imgaug.augmenters.blend

Blends images from two branches according to a regular grid.

26.

from imgaug.augmenters.blend

Blends images from two branches based on segmentation map ids.

27.

from imgaug.augmenters.blend

Alpha-blends two image sources using simplex noise alpha masks.

28.

from imgaug.augmenters.blend

Blends images from two branches using colorwise masks.

29.

from imgaug.augmenters.blend

Blends images from two branches along a vertical linear gradient.

30.

from imgaug.augmenters.imgcorruptlike

Wrapper around brightness().

PHOTOMETRY
31.

from imgaug.augmenters.contrast

Applies CLAHE (Contrast Limited Adaptive Histogram Equalization) to L/V/L channels in HLS/HSV/Lab colorspaces. CLAHE is a form of histogram equalization that normalizes within local image patches.

PHOTOMETRY
Original Augmented
aug = iaa.CLAHE(clip_limit=(0.1, 8), tile_grid_size_px=(3, 12), tile_grid_size_px_min=3,
                from_colorspace='RGB', to_colorspace='Lab')
32.

from imgaug.augmenters.artistic

Converts the style of images to a more cartoonish one.

Original Augmented
aug = iaa.Cartoon(blur_ksize=(5, 10), segmentation_size=(0.8, 1.2), saturation=(1.5, 2.5),
                  edge_prevalence=(0.8, 1.1), from_colorspace='RGB')
33.

from imgaug.augmenters.size

Crops images equally on all sides until they reach an aspect ratio.

34.

from imgaug.augmenters.size

Takes a crop from the center of each image.

35.

from imgaug.augmenters.size

Crops images equally on all sides until H/W are multiples of given values.

36.

from imgaug.augmenters.size

Crops images equally on all sides until H/W is a power of a base.

37.

from imgaug.augmenters.size

Crops images equally on all sides until their height/width are identical.

38.

from imgaug.augmenters.size

Pads images equally on all sides until H/W matches an aspect ratio.

39.

from imgaug.augmenters.size

Pads images equally on all sides up to given minimum heights/widths.

40.

from imgaug.augmenters.size

Pads images equally on all sides until H/W are multiples of given values.

41.

from imgaug.augmenters.size

Pads images equally on all sides until H/W is a power of a base.

42.

from imgaug.augmenters.size

Pads images equally on all sides until their height & width are identical.

43.

from imgaug.augmenters.color

Changes the temperature to a provided Kelvin value. Low Kelvin values around 1000 to 4000 will result in red, yellow or orange images. Kelvin values around 10000 to 40000 will result in progressively darker blue tones.

44.

from imgaug.augmenters.meta

Randomizes the order of channels in input images.

PHOTOMETRY
Original Augmented
Original Augmented
aug = iaa.ChannelShuffle(p=1.0, channels=None)
45.

from imgaug.augmenters.weather

Adds a single layer of clouds to an image.

WEATHER
46.

from imgaug.augmenters.weather

Adds clouds to images. This is a wrapper around CloudLayer.

WEATHER
47.

from imgaug.augmenters.arithmetic

Sets rectangular areas within images to zero.

48.

from imgaug.augmenters.arithmetic

Replaces rectangular areas in images with black-ish pixel noise.

49.

from imgaug.augmenters.arithmetic

Replaces rectangular areas in images with white-ish pixel noise.

50.

from imgaug.augmenters.arithmetic

Replaces rectangular areas in images with white/black-ish pixel noise.

51.

from imgaug.augmenters.imgcorruptlike

Wrapper around contrast().

PHOTOMETRY
52.

from imgaug.augmenters.size

Crops images.

53.

from imgaug.augmenters.size

Crops/pads images by pixel amounts or fractions of image sizes.

54.

from imgaug.augmenters.size

Crops images until their width/height matches an aspect ratio.

55.

from imgaug.augmenters.size

Crops images down to a fixed maximum width/height.

56.

from imgaug.augmenters.size

Crops images down until their height/width is a multiple of a value.

57.

from imgaug.augmenters.size

Crops images until their height/width is a power of a base.

58.

from imgaug.augmenters.size

Crops images until their width and height are identical.

59.

from imgaug.augmenters.arithmetic

Fills one or more rectangular areas in an image using a fill mode. See paper “Improved Regularization of Convolutional Neural Networks with Cutout” by DeVries e Taylor. In contrast to the paper, this implementation also supports replacing image sub-areas with gaussian noise, random intensities or random RGB colors. It also supports non-squared areas.

60.

from imgaug.augmenters.imgcorruptlike

Wrapper around defocus_blur().

61.

from imgaug.augmenters.arithmetic

Sets a certain fraction of pixels in images to zero.

62.

from imgaug.augmenters.arithmetic

Drops random channels from images.

63.

from imgaug.augmenters.imgcorruptlike

Wrapper around elastic_transform().

64.

from imgaug.augmenters.geometric

Transforms images by moving pixels locally around using displacement fields. See Simard, Steinkraus and Platt, Best Practices for Convolutional Neural Networks applied to Visual Document Analysis in Proc. of the International Conference on Document Analysis and Recognition, 2003.

65.

from imgaug.augmenters.convolutional

Embosses images and overlays the result with the original image.

Original Augmented
aug = iaa.Emboss(alpha=(0.5, 1.0), strength=(0.25, 1.0))
66.

from imgaug.augmenters.pillike

Changes the brightness of images.

PHOTOMETRY
Original Augmented
aug = iaa.pillike.EnhanceBrightness(factor=(0.6, 0.6))
Original Augmented
aug = iaa.pillike.EnhanceBrightness(factor=(1.4, 1.4))
67.

from imgaug.augmenters.pillike

Converts images to grayscale.

PHOTOMETRY
Original Augmented
aug = iaa.pillike.EnhanceColor(factor=(0.5, 0.5))
Original Augmented
aug = iaa.pillike.EnhanceColor(factor=(1.7, 1.7))
68.

from imgaug.augmenters.pillike

Changes the contrast of images.

PHOTOMETRY
Original Augmented
aug = iaa.pillike.EnhanceContrast(factor=(0.5, 0.5))
Original Augmented
aug = iaa.pillike.EnhanceContrast(factor=(1.5, 1.5))
69.

from imgaug.augmenters.pillike

Changes the sharpness of images.

SHARPNESS
Original Augmented
aug = iaa.pillike.EnhanceSharpness(factor=(0.2, 0.2))
Original Augmented
aug = iaa.pillike.EnhanceSharpness(factor=(3, 3))
70.

from imgaug.augmenters.pillike

Equalizes the image histogram.

PHOTOMETRY
Original Augmented
aug = iaa.pillike.Equalize()
71.

from imgaug.augmenters.weather

Converts non-snowy landscapes to snowy ones. It expects to get an image that roughly shows a landscape.

WEATHER
Original Augmented
Original Augmented
aug = iaa.FastSnowyLandscape(lightness_threshold=(0, 255), lightness_multiplier=(1.0, 4.0), from_colorspace='RGB', seed=None)
72.

from imgaug.augmenters.pillike

Applies a blur filter kernel to images.

BLUR
Original Augmented
aug = iaa.pillike.FilterBlur()
73.

from imgaug.augmenters.pillike

Applies a detail enhancement filter kernel to images.

Original Augmented
aug = iaa.pillike.FilterDetail()
74.

from imgaug.augmenters.pillike

Applies an edge enhance filter kernel to images.

Original Augmented
aug = iaa.pillike.FilterEdgeEnhance()
75.

from imgaug.augmenters.pillike

Applies a strong edge enhancement filter kernel to images.

Original Augmented
aug = iaa.pillike.FilterEdgeEnhanceMore()
76.

from imgaug.augmenters.pillike

Applies a sharpening filter kernel to images.

Original Augmented
aug = iaa.pillike.FilterSharpen()
77.

from imgaug.augmenters.pillike

Applies a smoothening filter kernel to images.

BLUR
Original Augmented
aug = iaa.pillike.FilterSmooth()
78.

from imgaug.augmenters.pillike

Applies a strong smoothening filter kernel to images.

BLUR
Original Augmented
aug = iaa.pillike.FilterSmoothMore()
79.

from imgaug.augmenters.flip

Flips/mirrors input images horizontally.

BASIC GEOMETRY
Original Augmented
aug = iaa.Fliplr(p=1)
80.

from imgaug.augmenters.flip

Flips/mirrors input images vertically.

BASIC GEOMETRY
Original Augmented
aug = iaa.Flipud(p=1)
81.

from imgaug.augmenters.imgcorruptlike

Wrapper around fog().

82.

from imgaug.augmenters.weather

Adds fog to images. This is a wrapper around CloudLayer.

WEATHER
83.

from imgaug.augmenters.imgcorruptlike

Wrapper around frost().

84.

from imgaug.augmenters.contrast

Adjusts image contrast by scaling pixel values to 255*((v/255)**gamma).

Original Augmented
aug = iaa.GammaContrast(gamma=(0.2, 0.2), per_channel=False)
Original Augmented
aug = iaa.GammaContrast(gamma=(1.3, 1.3), per_channel=False)
85.

from imgaug.augmenters.blur

Blurs images using gaussian kernels.

Original Augmented
aug = iaa.GaussianBlur(sigma=(2.0, 3.0), seed=None)
86.

from imgaug.augmenters.imgcorruptlike

Wrapper around gaussian_blur().

87.

from imgaug.augmenters.imgcorruptlike

Wrapper around gaussian_noise().

88.

from imgaug.augmenters.imgcorruptlike

Wrapper around glass_blur().

89.

from imgaug.augmenters.color

Converts images to their grayscale versions.

90.

from imgaug.augmenters.contrast

Applies histogram equalization to L/V/L channels of images in HLS/HSV/Lab colorspaces.

Original Augmented
aug = iaa.HistogramEqualization(from_colorspace='RGB', to_colorspace='Lab')
91.

from imgaug.augmenters.arithmetic

Adds impulse noise to images.

92.

from imgaug.augmenters.imgcorruptlike

Wrapper around impulse_noise().

93.

from imgaug.augmenters.arithmetic

Inverts all values in images, i.e. sets a pixel from value v to 255-v.

94.

from imgaug.augmenters.geometric

Moves cells within images similar to jigsaw patterns.

95.

from imgaug.augmenters.arithmetic

Degrades the quality of images by JPEG-compressing them.

96.

from imgaug.augmenters.imgcorruptlike

Wrapper around jpeg_compression().

WORSENING
97.

from imgaug.augmenters.color

Quantizes colors using k-Means clustering. This “collects” the colors from the input image, groups them into k clusters using k-Means clustering and replaces the colors in the input image using the cluster centroids.

98.

from imgaug.augmenters.size

Resizes images back to their input sizes after applying child augmenters.

99.

from imgaug.augmenters.contrast

Adjust contrast by scaling each pixel to 127 + alpha*(v-127).

Original Augmented
aug = iaa.LinearContrast(alpha=(0.6, 0.6), per_channel=False)
Original Augmented
aug = iaa.LinearContrast(alpha=(1.4, 1.4), per_channel=False)
100.

from imgaug.augmenters.contrast

Adjusts image contrast by scaling pixels to 255*gain*log_2(1+v/255).

Original Augmented
aug = iaa.LogContrast(gain=(0.4, 0.4), per_channel=False)
Original Augmented
aug = iaa.LogContrast(gain=(1.5, 1.5), per_channel=False)
101.

from imgaug.augmenters.pooling

102.

from imgaug.augmenters.blur

Applies a pyramidic mean shift filter to each image.

Original Augmented
aug = iaa.MeanShiftBlur(spatial_radius=(30.0, 30.0), color_radius=(5.0, 5.0), seed=None)
Original Augmented
aug = iaa.MeanShiftBlur(spatial_radius=(5.0, 5.0), color_radius=(30.0, 30.0), seed=None)
Original Augmented
aug = iaa.MeanShiftBlur(spatial_radius=(30.0, 30.0), color_radius=(30.0, 30.0), seed=None)
103.

from imgaug.augmenters.blur

Blurs an image by computing median values over neighbourhoods.

Original Augmented
aug = iaa.MedianBlur(k=(15, 15), seed=None)
104.

from imgaug.augmenters.pooling

105.

from imgaug.augmenters.pooling

106.

from imgaug.augmenters.blur

Blurs images in a way that fakes camera or object movements.

Original Augmented
aug = iaa.MotionBlur(k=(15, 15), angle=(0, 360), direction=(-1.0, 1.0), order=1, seed=None)
107.

from imgaug.augmenters.imgcorruptlike

Wrapper around motion_blur().

108.

from imgaug.augmenters.arithmetic

Multiplies all pixels in an image with a specific value, thereby making the image darker or brighter.

109.

from imgaug.augmenters.color

Multiplies and adds to the brightness channels of input images. This is a wrapper around WithBrightnessChannels and hence performs internally the same projection to random colorspaces.

110.

from imgaug.augmenters.color

Multiplies the brightness channels of input images. This is a wrapper around WithBrightnessChannels and hence performs internally the same projection to random colorspaces.

111.

from imgaug.augmenters.arithmetic

Multiplies values of pixels with possibly different values for neighbouring pixels, making each pixel darker or brighter.

112.

from imgaug.augmenters.color

Multiplies the hue of images by random values. The augmenter first transforms images to HSV colorspace, then multiplies the pixel values in the H channel and afterwards converts back to RGB. This augmenter is a shortcut for MultiplyHueAndSaturation(mul_hue=...).

113.

from imgaug.augmenters.color

Multipies hue and saturation by random values. The augmenter first transforms images to HSV colorspace, then multiplies the pixel values in the H and S channels and afterwards converts back to RGB. This augmenter is a wrapper around WithHueAndSaturation.

114.

from imgaug.augmenters.color

Multiplies the saturation of images by random values. The augmenter first transforms images to HSV colorspace, then multiplies the pixel values in the H channel and afterwards converts back to RGB. This augmenter is a shortcut for MultiplyHueAndSaturation(mul_saturation=...).

115.

from imgaug.augmenters.size

Pads images.

116.

from imgaug.augmenters.size

Pads images until their width/height matches an aspect ratio.

117.

from imgaug.augmenters.size

Pads images to minimum width/height.

118.

from imgaug.augmenters.size

Pads images until their height/width is a multiple of a value.

119.

from imgaug.augmenters.size

Pads images until their height/width is a power of a base.

120.

from imgaug.augmenters.size

Pads images until their height and width are identical.

121.

from imgaug.augmenters.arithmetic

Replaces pixels in images with pepper noise, i.e. black-ish pixels.

122.

from imgaug.augmenters.geometric

Applies random four point perspective transformations to images.

BASIC GEOMETRY
123.

from imgaug.augmenters.geometric

Applies affine transformations that differ between local neighbourhoods.

124.

from imgaug.augmenters.imgcorruptlike

Wrapper around pixelate().

125.

from imgaug.augmenters.pillike

Quantizes each array component to N bits.

Original Augmented
aug = iaa.Posterize(nb_bits=(1, 4), from_colorspace='RGB', to_colorspace=None,
                    max_size=None, interpolation='linear')
126.

from imgaug.augmenters.weather

Adds rain to images.

WEATHER
127.

from imgaug.augmenters.weather

Adds a single layer of falling raindrops to images.

WEATHER
128.

from imgaug.augmenters.collections

Applies RandAugment to inputs as described in the corresponding paper. See Cubuk et al. RandAugment: Practical automated data augmentation with a reduced search space.

129.

from imgaug.augmenters.segmentation

Samples Voronoi cells from regular grids and color-averages them.

Original Augmented
aug = iaa.RegularGridVoronoi(n_rows=(10, 30), n_cols=(10, 30), p_drop_points=(0.0, 0.5), p_replace=(0.5, 1.0), max_size=None, interpolation='linear', seed=None)
130.

from imgaug.augmenters.segmentation

Samples Voronoi cells from image-dependent grids and color-averages them.

Original Augmented
aug = iaa.RelativeRegularGridVoronoi(n_rows_frac=(0.05, 0.15), n_cols_frac=(0.05, 0.15), p_drop_points=(0.0, 0.5), p_replace=(0.5, 1.0), max_size=None, interpolation='linear', seed=None)
131.

from imgaug.augmenters.color

Decreases the saturation of images by varying degrees. This creates images looking similar to Grayscale. This augmenter is the same as MultiplySaturation((0.0, 1.0)).

132.

from imgaug.augmenters.arithmetic

Replaces pixels in an image with new values.

133.

from imgaug.augmenters.size

Resizes images to specified heights and widths.

134.

from imgaug.augmenters.geometric

Rotates images clockwise by multiples of 90 degrees. This could also be achieved using Affine, but Rot90 is significantly more efficient.

135.

from imgaug.augmenters.geometric

Applies affine rotation on the y-axis to input data. This is a wrapper around imgaug.augmenters.geometric.Affine.

BASIC GEOMETRY
136.

from imgaug.augmenters.arithmetic

Replaces pixels in images with salt noise, i.e. white-ish pixels.

137.

from imgaug.augmenters.arithmetic

Replaces pixels in images with salt/pepper noise (white/black-ish colors).

138.

from imgaug.augmenters.imgcorruptlike

Wrapper around saturate().

PHOTOMETRY
139.

from imgaug.augmenters.geometric

Applies affine scaling on the x-axis to input data. This is a wrapper around imgaug.augmenters.geometric.Affine.

140.

from imgaug.augmenters.geometric

Applies affine scaling on the y-axis to input data. This is a wrapper around imgaug.augmenters.geometric.Affine.

141.

from imgaug.augmenters.convolutional

Sharpens images and overlays the result with the original image.

Original Augmented
aug = iaa.Sharpen(alpha=(0.5, 1), lightness=(0.8, 1.2))
142.

from imgaug.augmenters.geometric

Applies affine shear on the x-axis to input data. This is a wrapper around imgaug.augmenters.geometric.Affine.

BASIC GEOMETRY
143.

from imgaug.augmenters.geometric

Applies affine shear on the y-axis to input data. This is a wrapper around imgaug.augmenters.geometric.Affine.

BASIC GEOMETRY
144.

from imgaug.augmenters.imgcorruptlike

Wrapper around shot_noise().

145.

from imgaug.augmenters.contrast

Adjust image contrast to 255*1/(1+exp(gain*(cutoff-I_ij/255))).

Original Augmented
aug = iaa.SigmoidContrast(gain=(2, 2), cutoff=(0.3, 0.3), per_channel=False)
Original Augmented
aug = iaa.SigmoidContrast(gain=(2, 2), cutoff=(0.6, 0.6), per_channel=False)
Original Augmented
aug = iaa.SigmoidContrast(gain=(9, 9), cutoff=(0.3, 0.3), per_channel=False)
Original Augmented
aug = iaa.SigmoidContrast(gain=(9, 9), cutoff=(0.6, 0.6), per_channel=False)
146.

from imgaug.augmenters.imgcorruptlike

Wrapper around snow().

147.

from imgaug.augmenters.weather

Adds falling snowflakes to images. This is a wrapper around SnowflakesLayer.

WEATHER
148.

from imgaug.augmenters.weather

Adds a single layer of falling snowflakes to images.

WEATHER
149.

from imgaug.augmenters.arithmetic

Inverts all values above a threshold in images.

150.

from imgaug.augmenters.pillike

Inverts all pixel values above a threshold.

PHOTOMETRY
Original Augmented
aug = iaa.Solarize(p=1.0, threshold=128)
151.

from imgaug.augmenters.imgcorruptlike

Wrapper around spatter().

152.

from imgaug.augmenters.imgcorruptlike

Wrapper around speckle_noise().

153.

from imgaug.augmenters.segmentation

Completely or partially transforms images to their superpixel representation.

Original Augmented
aug = iaa.Superpixels(p_replace=(0.5, 0.5), n_segments=(100, 120), max_size=None, interpolation='linear', seed=None)
154.

from imgaug.augmenters.geometric

Applies affine translation on the x-axis to input data. This is a wrapper around imgaug.augmenters.geometric.Affine.

155.

from imgaug.augmenters.geometric

Applies affine translation on the y-axis to input data. This is a wrapper around imgaug.augmenters.geometric.Affine.

156.

from imgaug.augmenters.color

Quantizes colors into N bins with regular distance.

157.

from imgaug.augmenters.color

Quantizes images by setting 8-B bits of each component to zero.

158.

from imgaug.augmenters.segmentation

Uniformly samples Voronoi cells on images and averages colors within them.

Original Augmented
aug = iaa.UniformVoronoi(n_points=(50, 50), p_replace=(0.5, 1.0), max_size=None, interpolation='linear', seed=None)
Original Augmented
aug = iaa.UniformVoronoi(n_points=(200, 200), p_replace=(0.5, 1.0), max_size=None, interpolation='linear', seed=None)
159.

from imgaug.augmenters.segmentation

Averages colors of an image within Voronoi cells.

Original Augmented
points_sampler = iaa.RegularGridPointsSampler(n_cols=20, n_rows=30)
aug = iaa.Voronoi(points_sampler, p_replace=1.0, max_size=None, interpolation='linear', seed=None)
Original Augmented
points_sampler = iaa.RegularGridPointsSampler(n_cols=20, n_rows=50)
aug = iaa.Voronoi(points_sampler, p_replace=1.0, max_size=None, interpolation='linear', seed=None)
160.

from imgaug.augmenters.color

Applies child augmenters to brightness-related image channels.

161.

from imgaug.augmenters.color

Applies child augmenters within a specific colorspace.

162.

from imgaug.augmenters.color

Applies child augmenters to hue and saturation channels.

163.

from imgaug.augmenters.geometric

Applies other augmenters in a polar-transformed space.

164.

from imgaug.augmenters.imgcorruptlike

Wrapper around zoom_blur().